package com.kgcx.coupon.mapper;
import com.kgcx.coupon.domain.PullRule;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface PullRuleMapper {

    int deleteByPrimaryKey(Integer kid);

    int insert(PullRule record);

    void insertByBatch(List<PullRule> list);

    PullRule selectByPrimaryKey(Integer kid);

    int updateByPrimaryKeySelective(PullRule record);

    int updateByPrimaryKey(PullRule record);
    
    public List<PullRule> selectPullRuleByConfigId(@Param("pullConfigId") Integer pullConfigId);
    
    public void deleteByConfigId(@Param("pullConfigId") Integer pullConfigId);
}
